package com.secxiot.provider.narcotic.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 用户用药记录
 */
@ApiModel
@Data
@ToString
public class NarcoticPatientDrugsRecordVo {

    @ApiModelProperty(value = "用药申请记录id", required = true)
    private Long patientDrugsRecordId;

    @ApiModelProperty(value = "患者ID", required = true)
    private Long userId;

    @ApiModelProperty(value = "药品类型", required = true)
    private Long drugsId;

    @ApiModelProperty(value = "患者资料Id", required = true)
    private Long patientInfoId;

    @ApiModelProperty(value = "医疗机构Id", required = true)
    private Long hospitalId;

    @ApiModelProperty(value = "审核时间", required = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;

    @ApiModelProperty(value = "审核状态 0 未审核 1 医生审核  2 药师审核   3 取药 4 销毁(完成)  5 拒绝", required = false)
    private Integer status;

    @ApiModelProperty(value = "创建时间", required = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "药品名称", required = false)
    private String drugsName;

    @ApiModelProperty(value = "医院名称", required = false)
    private String hospitalName;

    @ApiModelProperty(value = "用户名称", required = false)
    private String userName;
}
